package club.banyuan.oop.Geometry;

/**
 * @author edz
 * @version 1.0
 * @date 2020/11/20 下午2:32
 */
public class Rectangle extends Cuboid {
    private double heigth;

    public double getHeigth() {
        return heigth;
    }

    public void setHeigth(double heigth) {
        this.heigth = heigth;
    }

    Cuboid cuboid = new Cuboid();

    public double Volume(double area, double heigth) {
        double rectangle = cuboid.Area(cuboid.getLength(), cuboid.getWidth()) * heigth;
        return rectangle;
    }


}
